<%-- 
    Document   : room
    Created on : May 11, 2013, 9:10:25 AM
    Author     : aptech
--%>
<%@taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core"  %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Untitled Document</title>
        <style>
            #rom_middle_panel {
                width: 1000px;
                height: auto;
                /*background-color: #CFC;*/
                float: left;
            }
            #rom_middle_left_panel {
                width: 450px;
                height: auto;
                /*background-color: #FCC;*/
                float: left;
            }
            #rom_middle_right_panel {
                width: 450px;
                height: auto;
                /*background-color: #6FF;*/
                float: left;
            }
            #rom_left_image {
                width: 400px;
                height: 350px;
            }
            #rom_thumbs {
            }
            #rom_thumbs span img {
                display: inline-block;
                width: 100px;
                height: 100px;
                /*	background-color: #666;*/
            }
            #rom_middle_left_panel .button{
                padding: 10px;
                background-color: #50451E;
                width: 100px;
            }
        </style>
    </head>

    <body>
        <div id="rom_middle_panel">
            <div id="rom_middle_left_panel">
                <c:if test= "${listR != null}" >
                    <c:forEach items="${listR}" var="r">
                        <p class="button">Room: ${r.roomid}</p>
                    </c:forEach>
                </c:if>
<!--                <div id="rom_left_image">
                    <img width="400" height="350" src="images/r_001_1.jpg" />
                </div>
                <div id="rom_thumbs">
                    <span>
                        <img src="images/r_001_1.jpg" width="100" height="100" />
                    </span>
                    <span>
                        <img src="images/r_001_1.jpg" width="100" height="100" />
                    </span>
                    <span>
                        <img src="images/r_001_1.jpg" width="100" height="100" />
                    </span>
                    <span>
                        <img src="images/r_001_1.jpg" width="100" height="100" />
                    </span>
                </div>-->
            </div>
            <div id="rom_middle_right_panel">
                
<!--                <h1>Room: 001</h1>
                <p id="rom_type">Luxury</p>
                <p id="rom_price">250 uSd</p>-->
<%
       if(request.getAttribute("rList") == null){
           request.getRequestDispatcher("ListRoomAction").forward(request, response);
       }
       out.print("<h1>Empty</h1>");
%>
<%--<c:if test="${rList} eq null">
    <jsp:forward page="ListRoomAction">
        <jsp:param name="action" value="list"></jsp:param>
    </jsp:forward>
</c:if>--%>
<c:forEach items="${rList}" var="r">
    <p>${r.roomno}</p>
</c:forEach>
            </div>
            <h1>Room.jsp</h1>
        </div>
    </body>
</html>
